package com.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Address {
    private Integer address_id;
    private String address   ;
    private String address2  ;
    private String district  ;
    private Integer city_id  ;
    private String postal_cod;
    private String phone     ;
    private String location  ;
   @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date last_update ;

    @Override
    public String toString() {
        return "Address{" +
                "address_id=" + address_id +
                ", address='" + address + '\'' +
                ", address2='" + address2 + '\'' +
                ", district='" + district + '\'' +
                ", city_id=" + city_id +
                ", postal_cod='" + postal_cod + '\'' +
                ", phone='" + phone + '\'' +
                ", location='" + location + '\'' +
                ", last_update=" + last_update +
                '}';
    }

    public Integer getAddress_id() {
        return address_id;
    }

    public void setAddress_id(Integer address_id) {
        this.address_id = address_id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public Integer getCity_id() {
        return city_id;
    }

    public void setCity_id(Integer city_id) {
        this.city_id = city_id;
    }

    public String getPostal_cod() {
        return postal_cod;
    }

    public void setPostal_cod(String postal_cod) {
        this.postal_cod = postal_cod;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Date getLast_update() {
        return last_update;
    }

    public void setLast_update(Date last_update) {
        this.last_update = last_update;
    }
}
